class Pick < ActiveRecord::Base
  belongs_to  :player
  belongs_to  :user
  
  def add_player(user, player)
    r = Pick.find_or_initialize_by_user_id_and_player_id(user.id, player.id)
    r.save if r.new_record?
  end
  
end
